package cn.com.yunhe.service.impl;

import cn.com.yunhe.bean.CCarColor;
import cn.com.yunhe.dao.CCarColorMapper;
import cn.com.yunhe.service.CCarColorService;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;

/**
 * @Author: 赵长松
 * @Date: 2019/1/7 15:28
 * @Version 1.0
 */
@Service
public class CCarColorServiceImpl  extends ServiceImpl<CCarColorMapper,CCarColor> implements CCarColorService {
    @Override
    public Integer addColor(CCarColor cCarColor) {
        return baseMapper.addColor(cCarColor);
    }

    @Override
    public List<CCarColor> querycolors(Map map) {

        return baseMapper.queryAllColor(map);
    }

    @Override
    public CCarColor queryOneColor(Integer id) {
        return baseMapper.getOneColor(id);
    }

    @Override
    public Integer uptColor(CCarColor cCarColor) {
        return baseMapper.uptColor(cCarColor);
    }

    @Override
    public Integer delColor(Integer id) {
        return baseMapper.delColor(id);
    }

}
